package com.mew.common.entity.back;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Dylin
 * @since 2021-08-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("r_balance_change")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class BalanceChange implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 账号ID
     */
    private Integer adminId;

    /**
     * 代理ID
     */
    private Integer agentId;

    /**
     * 1 上分  2 下分
     */
    private Integer type;

    /**
     * 改变数量
     */
    private Double changeNumber;

    /**
     * 操作前 分数
     */
    private Double beforAdminBalance;

    /**
     * 操作前 代理 分数
     */
    private Double beforAgentBalance;

    /**
     * 操作后 分数
     */
    private Double afterAdminBalance;

    /**
     * 操作后 代理分数
     */
    private Double afterAgentBalance;

    /**
     * ip
     */
    private String ip;

    /**
     * 操作时间
     */
    private Date changeDate;


}
